package com.yh.serviceimpl;

import com.yh.javabean.User;
import com.yh.mapper.UserMapper;
import com.yh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: als
 * @Date: 2024/5/31 - 05 - 31 - 12:09
 * @Description: com.yh.serviceimpl
 * @version: 1.0
 */
@Service("userService")
public class UserServiceImpl  implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.selectAll();
    }

    @Override
    public User findByUid(int uid) {
        return userMapper.selectByUid(uid);
    }
}
